package com.joysuch.wwyt.bp.bean.contractor;

import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;

/**
 * @Author ZhangDong
 * @Date 2020/7/8 15:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpContractorCertBean {

    @ApiModelProperty("证书id")
    private Long id;
    @ApiModelProperty("承包商表Id")
    private Long contractorId;
    @ApiModelProperty("承包商资质证书编号")
    private String code;
    @ApiModelProperty("承包商资质证书名称")
    @NotBlank(message = "承包商资质证书名称不能为空")
    private String certName;
    @ApiModelProperty("资质证书到期日期")
    private LocalDate certExpireDate;
    @ApiModelProperty("证书文件")
    private BaseAttachmentBean attachment;
    @ApiModelProperty("证书是否过期")
    private String expireFlag = "过期";
}
